import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-ng-if',
  templateUrl: './ng-if.component.html',
  styleUrls: ['./ng-if.component.scss']
})
export class NgIfComponent implements OnInit {
  isShow:boolean = true;

  options:any = {
    width:"120px",
    text:"展示/隐藏"
  };
  constructor() { }

  ngOnInit() {
  }

  btnClick(){
    this.isShow = !this.isShow;
  }
}
